import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui' // 2.1引入结构
import 'element-ui/lib/theme-chalk/index.css'
import 'echarts-gl'
import * as echarts from 'echarts'
import { hasBtnPermission } from './utils/permission'
Vue.config.productionTip = false
Vue.prototype.$echarts = echarts
// 全局修改默认配置，点击空白处不能关闭弹窗
ElementUI.Dialog.props.closeOnClickModal.default = false
Vue.prototype.hasBtnPermission=hasBtnPermission
Vue.use(ElementUI)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
